package com.service.impl;

import com.bean.entity.Department;
import com.dao.DepartmentMapper;
import com.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部门业务实现
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> queryAll(Department dept) {
        //查询所有部门
        List<Department> deptList = departmentMapper.select(dept);
        return deptList;
    }
}
